package com.demo.commcial.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.demo.commcial.entity.AgentBaseInfo;
import com.demo.commcial.mapper.AgentBaseInfoMapper;
import com.demo.commcial.service.IAgentBaseInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author admin
 * @since 2020-12-05
 */
@Service
public class AgentBaseInfoServiceImpl extends ServiceImpl<AgentBaseInfoMapper, AgentBaseInfo> implements IAgentBaseInfoService {

    @Resource
    private AgentBaseInfoMapper agentBaseInfoMapper;

    @Override
    public List<AgentBaseInfo> getAgentBaseInfoList(IPage page, String accountId, String codeNo) {
        return agentBaseInfoMapper.getAgentBaseInfoList(page, accountId, codeNo);
    }

    @Override
    public IPage<AgentBaseInfo> getAgentBaseInfoList1(IPage page, String accountId, String codeNo) {
        return page.setRecords(agentBaseInfoMapper.getAgentBaseInfoList(page, accountId, codeNo));
    }
}
